@import "./mixin.scss";
@import "./transition.scss";
@import "./element-ui.scss";
@import "./sidebar.scss";

body {
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB,
    Microsoft YaHei, Arial, sans-serif;
  overflow-y: hidden !important;
}

label {
  font-weight: 700;
}

html {
  height: 100%;
  box-sizing: border-box;
}

#app {
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

// main-container global css
.app-container {
  padding: 20px;
}

img[src=""],
img:not([src]) {
  opacity: 0;
}

.el-image-viewer__canvas {
  user-select: none;
}
*:not([input]) {
  user-select: none;
}

#app {
  .primary {
    background-color: #409eff;
  }
  .success {
    background-color: #67c23a;
  }
  .warning {
    background-color: #e6a23c;
  }
  .danger {
    background-color: #f56c6c;
  }
  .info {
    background-color: #909399;
  }
  .fl {
    float: left;
  }
  .fr {
    float: right;
  }
}

.main__page {
  min-width: $baseWidth;
  max-width: $bigWidth;
  min-height: 100%;
  margin: 0 auto;
  position: relative;
}

.edit-main__page {
  width: $baseWidth;
  min-height: 100%;
  margin: 0 auto;
  position: relative;
}

.upload-image-border {
  border: 2px dashed #d9d9d9;
}

.upload-cover-suggest {
  margin: 0;
  padding: 0;
  list-style: none;
  word-wrap: break-word;
  font-size: 12px;
  color: #99a2aa;
  li::before {
    content: "";
    width: 6px;
    height: 6px;
    background: #99a2aa;
    display: inline-block;
    border-radius: 50%;
    margin-bottom: 2px;
    margin-right: 4px;
  }
}
